<%@ page language="java" pageEncoding="UTF-8"%>
<%@ taglib prefix="s" uri="/struts-tags"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta name="format-detection" content="telephone=no,email=no,adress=no">
<link href="<%=request.getContextPath()%>/css/global.css" type="text/css" rel="stylesheet" />
<link href="<%=request.getContextPath()%>/js/easyui/themes/metro/easyui.css" type="text/css" rel="stylesheet" />
<script type="text/javascript" src="<%=request.getContextPath()%>/js/jquery.js"></script>
<script type="text/javascript" src="<%=request.getContextPath()%>/js/validate/validate.js"></script>
<script type="text/javascript" src="<%=request.getContextPath()%>/js/global.js"></script>
<script type="text/javascript" src="<%=request.getContextPath()%>/js/easyui/easyui.js"></script>
<script type="text/javascript">
	$(function() {
		$("#sform").validate({
			rules : {
				repNo : {	required : true	},
repAddress : {	required : true	},
repCatalog : {	required : true	},
repPrice : {	required : true,number : true},
repState : {	required : true	},
repDate : {	required : true	},
repRemark : {	required : false	}
			},
			errorPlacement : function(error, element) {
				element.css("border-color","#1c3e57");
			},
		});
	});
</script>
</head>
<body>
 	<div class="easyui-panel" title="编辑面板" style="width:100%;" data-options="fit:true">
	<form id="sform" action="replace_save.html" method="post" enctype="multipart/form-data">
		<table width="90%">
				<tr>
					<td height="30" align="right" width="200"><b></b></td>
					<td width="300"><b>内容</b></td>
					<td><b>说明</b></td>
				</tr>
				<tr>
					<td></td>
					<td colspan="2"><hr /></td>
				</tr>
				<tr><td height="30" align="right">编号 : </td><td><input type="text" placeholder="编号" name="repNo" id="repNo" value="<s:property value="replaceBean.repNo"/>"/></td><td>编号</td></tr>
<tr><td height="30" align="right">伪站地址 : </td><td><input type="text" placeholder="伪站地址" name="repAddress" id="repAddress" value="<s:property value="replaceBean.repAddress"/>"/></td><td>伪站网址域名</td></tr>
<tr><td height="30" align="right">产品类型 : </td><td><input type="text" placeholder="产品类型" name="repCatalog" id="repCatalog" value="<s:property value="replaceBean.repCatalog"/>"/></td><td>该网站的产品类型</td></tr>
<tr><td height="30" align="right">价格范围 : </td><td><input type="text" placeholder="价格范围" name="repPrice" id="repPrice" value="<s:if test="replaceBean.repPrice!=null"><s:text name="global.format.number"><s:param value="replaceBean.repPrice"/></s:text></s:if>" onkeyup="value=value.replace(/[^\d\.]/g,'')" /></td><td>该网站的产品价格范围(指定数值上下浮动30%)</td></tr>
<tr><td height="30" align="right">是否可用 : </td><td><s:radio id="repState" name="repState" list="#{'0':'无效','1':'有效'}"  value="replaceBean.repState"></s:radio></td><td>是否可用</td></tr>
<tr><td height="30" align="right">创建日期 : </td><td><input type="text" placeholder="创建日期" name="repDate" id="repDate" value="<s:if test="replaceBean.repDate!=null"><s:text name="global.format.date"><s:param value="replaceBean.repDate"/></s:text></s:if>" onclick="WdatePicker();" /></td><td>创建日期</td></tr>
<tr><td height="30" align="right">禁用原因 : </td><td><input type="text" placeholder="禁用原因" name="repRemark" id="repRemark" value="<s:property value="replaceBean.repRemark"/>"/></td><td>禁用原因</td></tr>


				<tr>
					<td></td>
					<td colspan="2"><hr /></td>
				</tr>

				<tr>
					<td height="30" align="right"></td>
					<td><input type="button" class="submit" value="提交单据" onclick="if($('#sform').valid()){$('#sform').submit();}" /> <input type="button" class="submit" value="返回上级" onclick="history.go(-1);" /></td>
					<td></td>
				</tr>
			</table>
	</form>
    </div>
</body>
</html>

